package com.ny.demo0411;

public class Cat {
    private String name;
    private int age;
    private String furColor;

    public Cat(String name, int age, String furColor) {
        this.name = name;
        this.age = age;
        this.furColor = furColor;
    }

    public void makeSound() {
        System.out.println(name + "喵喵叫！");
    }

    public void displayInfo() {
        System.out.println("这是一只" + furColor + "的猫，名字叫" + name + "，今年" + age + "岁。");
    }
}